package hu.bme.aut.consulttime.server.entities;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;

@Entity
public class Tutor extends User implements Serializable {
	
	private static final long serialVersionUID = 8L;

	// Reference to Project
	@ManyToMany(mappedBy = "tutors")
	private List<Project> projects = new ArrayList<Project>();

	// Reference to ToDo
	@OneToMany(mappedBy = "tutor")
	private List<ToDo> todos = new ArrayList<ToDo>();

	public List<Project> getProjects() {
		return projects;
	}

	public void setProjects(List<Project> projects) {
		this.projects = projects;
	}

	public List<ToDo> getTodos() {
		return todos;
	}

	public void setTodos(List<ToDo> todos) {
		this.todos = todos;
	}

}
